home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / src / gas-211 / gas / frags.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-30  |  1.9 KB  |  66 lines

  1. /* frags.h - Header file for the frag concept.
  2.  
  3.    Copyright (C) 1987, 1992 Free Software Foundation, Inc.
  4.  
  5.    This file is part of GAS, the GNU Assembler.
  6.  
  7.    GAS is free software; you can redistribute it and/or modify
  8.    it under the terms of the GNU General Public License as published by
  9.    the Free Software Foundation; either version 2, or (at your option)
  10.    any later version.
  11.  
  12.    GAS is distributed in the hope that it will be useful,
  13.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.    GNU General Public License for more details.
  16.  
  17.    You should have received a copy of the GNU General Public License
  18.    along with GAS; see the file COPYING.  If not, write to
  19.    the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21. extern struct obstack frags;
  22. /* Frags ONLY live in this obstack. */
  23. /* We use obstack_next_free() macro */
  24. /* so please don't put any other objects */
  25. /* on this stack! */
  26.  
  27. /*
  28.  * A macro to speed up appending exactly 1 char
  29.  * to current frag.
  30.  */
  31. /* JF changed < 1 to <= 1 to avoid a race conditon */
  32. #define FRAG_APPEND_1_CHAR(datum)    \
  33. {                    \
  34.   if (obstack_room( &frags ) <= 1) {\
  35.     frag_wane (frag_now);    \
  36.     frag_new (0);        \
  37.   }                \
  38.   obstack_1grow( &frags, datum );    \
  39. }
  40.  
  41.  
  42. char *frag_more PARAMS ((int nchars));
  43. void frag_align PARAMS ((int alignment, int fill_character));
  44. void frag_new PARAMS ((int old_frags_var_max_size));
  45. void frag_wane PARAMS ((fragS * fragP));
  46.  
  47. char *frag_variant PARAMS ((relax_stateT type,
  48.                 int max_chars,
  49.                 int var,
  50.                 relax_substateT subtype,
  51.                 symbolS * symbol,
  52.                 long offset,
  53.                 char *opcode,
  54.                 int pcrel_adjust,
  55.                 int bsr));
  56.  
  57. char *frag_var PARAMS ((relax_stateT type,
  58.             int max_chars,
  59.             int var,
  60.             relax_substateT subtype,
  61.             symbolS * symbol,
  62.             long offset,
  63.             char *opcode));
  64.  
  65. /* end of frags.h */
  66.